package cn.pzhu.pserson.dto;

import cn.pzhu.pserson.util.BeanUtil;
import java.io.Serializable;
import cn.pzhu.pserson.model.Background;


public class BackgroundDTO implements Serializable {
        
        private static final long serialVersionUID = 1L;
        
        private String name;
        
        private String path;
        
        public String getName() {
            return this.name;
        }
        
        public void setName(String name) {
            this.name = name;
        }
        
        public String getPath() {
            return this.path;
        }
        
        public void setPath(String path) {
            this.path = path;
        }
        
        public Background toModel() {
            Background model = new Background();
			BeanUtil.convert(this, model);
			return model;
        }
    
}